﻿@model Sigavat.Entities.Promotor

@{
    ViewBag.Title = "Create";
}

<h2>Nuevo Promotor</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Promotor</legend>
        
        <table>
            <tr>
                <td>@Html.LabelFor(model => model.Nombres)</td>
                <td>
                    @Html.EditorFor(model => model.Nombres)
                    @Html.ValidationMessageFor(model => model.Nombres)
                </td>
                <td>@Html.LabelFor(model => model.ApPaterno)</td>
                <td>
                    @Html.EditorFor(model => model.ApPaterno)
                    @Html.ValidationMessageFor(model => model.ApPaterno)
                </td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.ApMaterno)</td>
                <td>
                    @Html.EditorFor(model => model.ApMaterno)
                    @Html.ValidationMessageFor(model => model.ApMaterno)
                </td>
                <td>@Html.LabelFor(model => model.Email)</td>
                <td>
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.Direccion)</td>
                <td>
                    @Html.EditorFor(model => model.Direccion)
                    @Html.ValidationMessageFor(model => model.Direccion)
                </td>
                <td>@Html.LabelFor(model => model.CodigoPromotor)</td>
                <td>
                    @Html.EditorFor(model => model.CodigoPromotor)
                    @Html.ValidationMessageFor(model => model.CodigoPromotor)
                </td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.NumPromotor)</td>
                <td>
                    @Html.EditorFor(model => model.NumPromotor)
                    @Html.ValidationMessageFor(model => model.NumPromotor)
                </td>
                <td>@Html.LabelFor(model => model.CodEquifax)</td>
                <td>
                    @Html.EditorFor(model => model.CodEquifax)
                    @Html.ValidationMessageFor(model => model.CodEquifax)
                </td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.Ubigeo)</td>
                <td>
                    @Html.EditorFor(model => model.Ubigeo)
                    @Html.ValidationMessageFor(model => model.Ubigeo)
                </td>
                <td>@Html.LabelFor(model => model.IdCentroComercial)</td>
                <td>
                    @*@Html.EditorFor(model => model.IdCentroComercial)*@
                     @Html.DropDownList("Id")
                    @Html.ValidationMessageFor(model => model.IdCentroComercial)
                </td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.Dni)</td>
                <td>
                    @Html.EditorFor(model => model.Dni)
                    @Html.ValidationMessageFor(model => model.Dni)
        
                </td>
            
            	<td>@Html.LabelFor(model => model.Genero)</td>
                <td>
                    @Html.EditorFor(model => model.Genero)
                    @Html.ValidationMessageFor(model => model.Genero)
                </td>
            </tr>
            <tr>
            	<td>@Html.LabelFor(model => model.Telefono)</td>
                <td>
                    @Html.EditorFor(model => model.Telefono)
                    @Html.ValidationMessageFor(model => model.Telefono)
                </td>
            	<td>@Html.LabelFor(model => model.FechaNac)</td>
                <td>
                    @Html.EditorFor(model => model.FechaNac)
                    @Html.ValidationMessageFor(model => model.FechaNac)
                </td>

            </tr>
        </table>
        

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
